package experiment3;

import java.util.Scanner;

public class No_2 {
    public static void main(String []args)
    {
        System.out.println("请输入一个整数：");
        Scanner input=new Scanner(System.in);
        int num=input.nextInt();
        reverse(num);
    }
    public static void reverse(int number)
    {
        while (number!=0)
        {
            System.out.print(number%10);
            number=number/10;
        }
    }

}
